package com.cch.cooperation.api.bookkeepping.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 记账分组DTO
 *
 * @author cch
 */
@ApiModel("记账分组DTO")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class BookkeepingGroupDTO {

    @ApiModelProperty("流水日期，格式：yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    @ApiModelProperty("流水明细")
    private List<BookkeepingDTO> bookkeeping;

}
